'use strict';

process.env.BABEL_ENV = 'production';
process.env.NODE_ENV = 'production';

process.on('unhandleRejection', err => {
    throw err;
});

require('../config/env');

const webpack = require('webpack');
const config = require('../config/webpack.dll.config');

const compiler = webpack(config);
compiler.run((err, stats) => {
    if (err) {
        throw err;
    }
    console.log(stats);
});
